package com.shinbada.modules.sys.web.app;

import com.shinbada.common.json.AjaxJson;
import com.shinbada.core.web.BaseController;
import com.shinbada.modules.sys.utils.DictUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author initcap
 * @date 2020/10/6 12:50
 */
@RestController
@RequestMapping("/app/sys/dict")
public class AppDictController extends BaseController {

    @GetMapping("getDictMap")
    public AjaxJson getDictMap() {
        return AjaxJson.success().put("dictList", DictUtils.getDictMap());
    }


}
